package com.library.recommendBook.util;

/**
 * 图书状态类别枚举类
 */
public enum RecommendReason {

	BORROWED_FRIEND("读友关注", RecommendReason.BORROWED_FRIEND_REASON),
	BORROWED_RELATED("相似图书", RecommendReason.BORROWED_RELATED_REASON);

	private final static int BORROWED_FRIEND_REASON = 0;		//相似借阅
	private final static int BORROWED_RELATED_REASON = 1;	//与我借阅的书相似的

	private String name;
	private int reason;

	RecommendReason(String name, int reason) {
		this.name = name;
		this.reason = reason;
	}

	/**
	 * 获取原因类别名称
	 *
	 * @return
	 */
	public String getName() {
        return name;
    }

    /**
     * 获取原因类型
     *
     * @return
     */
    public int getReason() {
        return reason;
    }
}
